package cn.yyh.org.domain;

import cn.yyh.basic.domain.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: Shop
 * @Package: cn.yyh.org.domain
 * @date 2021/6/29
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Shop extends BaseDomain {
    private String name;
    private String tel;
    private Date registerTime = new Date();
    private Integer state = 0;
    private String address;
    private String logo;
    private Long adminId;

   public Shop(Long id, String name, String tel, Date registerTime, Integer state, String address, String logo, Long adminId) {
      super(id);
      this.name = name;
      this.tel = tel;
      this.registerTime = registerTime;
      this.state = state;
      this.address = address;
      this.logo = logo;
      this.adminId = adminId;
   }
}
